package com.hm.hall.user.controller.resp;

import com.hm.hall.commons.constans.ErrorCode;
import com.hm.hall.commons.domain.resp.BaseResponse;


/**
 * 用户 余额
 */
public class UserBalanceResp extends BaseResponse {

    /**
     * 用户id
     */
    public Long userId;

    /**
     * 用户的钻石余额
     * t_deal_user_balance.balance_diamond
     */
    private Long balanceDiamond;

    private Long dealPaymentId;

    public UserBalanceResp() {
    }

    /**
     * @param errorCode
     * @param errMsg
     */
    public UserBalanceResp(int errorCode, String errMsg) {
        super(errorCode, errMsg);
    }

    /**
     * 传入枚举,提供类型检查,  防止出错
     *
     * @param errorCode 错误码枚举
     */
    public UserBalanceResp(ErrorCode errorCode) {
        super(errorCode);
    }

    /**
     * 设置返回500 , 的未知错误
     * e.getMessage() 提示错误
     *
     * @param e
     */
    public UserBalanceResp(Exception e) {
        super(e);
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDealPaymentId() {
        return dealPaymentId;
    }

    public void setDealPaymentId(Long dealPaymentId) {
        this.dealPaymentId = dealPaymentId;
    }

    public Long getBalanceDiamond() {
        return balanceDiamond;
    }

    public void setBalanceDiamond(Long balanceDiamond) {
        this.balanceDiamond = balanceDiamond;
    }

}

